<#--
/****************************************************
 * Description: 角色权限的简单列表页面，没有编辑功能
 * Copyright:   Copyright (c) 2013
 * Company:     beiwaionline
 * @author      bfsu
 * @version     1.0
 * @see
	HISTORY
    *  2013-08-08 bfsu Create File
**************************************************/
-->
<#include "/templates/back/list.ftl">
<@list url='${base}//rolePrivilege/list' >
<table>
    <thead>
    <tr>
        <th data-options="field:'ids',checkbox:true"></th>
        <th>所属角色</th>
        <th>权限名称</th>
        <th>权限编码</th>
        <th>功能编码列表</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
        <#list page.items?if_exists as item>
        <tr>
            <td>${item.id}</td>
            <td>
            ${item.role.title}
            </td>
            <td>
            ${item.privilegeTitle}
            </td>
            <td>
            ${item.privilegeCode}
            </td>
            <td>
            ${item.functionList}
            </td>
            <td>
                <a href="#" onclick="input('编辑角色权限','${base}//rolePrivilege/input/${item.id}');" class="button"
                   iconCls="icon-edit">修改</a>
                <a href="#" onclick="update('${base}//rolePrivilege/delete/${item.id}','listForm','删除角色权限？');"
                   class="button" iconCls="icon-remove">删除</a>
            </td>
        </tr>
        </#list>
    </tbody>
</table>
</@list>